<!-- INCLUDE overall_header.html -->

<script type="text/javascript">
// <![CDATA[
	function dE(n, s)
	{
		var e = document.getElementById(n);

		if (!s)
		{
			s = (e.style.display == '' || e.style.display == 'block') ? -1 : 1;
		}
		e.style.display = (s == 1) ? 'block' : 'none';
	}

	var form_name = 'view_article';
	var text_name = 'comment';

	// Define the bbCode tags
	var bbcode = new Array();
	var bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]','[flash=]', '[/flash]','[size=]','[/size]'<!-- BEGIN custom_tags -->, {custom_tags.BBCODE_NAME}<!-- END custom_tags -->);
	var imageTag = false;

	// Helpline messages
	var help_line = {
		b: '{LA_BBCODE_B_HELP}',
		i: '{LA_BBCODE_I_HELP}',
		u: '{LA_BBCODE_U_HELP}',
		q: '{LA_BBCODE_Q_HELP}',
		c: '{LA_BBCODE_C_HELP}',
		l: '{LA_BBCODE_L_HELP}',
		o: '{LA_BBCODE_O_HELP}',
		p: '{LA_BBCODE_P_HELP}',
		w: '{LA_BBCODE_W_HELP}',
		s: '{LA_BBCODE_S_HELP}',
		f: '{LA_BBCODE_F_HELP}',
		e: '{LA_BBCODE_E_HELP}',
		d: '{LA_BBCODE_D_HELP}',
		t: '{LA_BBCODE_T_HELP}',
		tip: '{L_STYLES_TIP}'
		<!-- BEGIN custom_tags -->
			,cb_{custom_tags.BBCODE_ID}: '{custom_tags.A_BBCODE_HELPLINE}'
		<!-- END custom_tags -->
	}

// ]]>
</script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/editor.js"></script>

<div id="pagecontent">

	<form id="view_article" method="post" action="{S_MODE_ACTION}">

	<!-- IF INTRO and CONTENT -->
	<table class="tablebg" width="100%" cellspacing="1">
	<tr>
		<td class="cat"><h4>{TITLE}</h4></td>
	</tr>
	<tr>
		<th nowrap="nowrap">{L_LAST_UPDATED}: {TIME}</th>
	</tr>
	<tr>
		<td class="row1" colspan="2">
			<div class="postbody" style="padding: 10px; text-align: justify;">
				<div align="{S_CONTENT_FLOW_END}"><!-- IF U_EDIT --><a href="{U_EDIT}" title="{L_EDIT_ARTICLE}">{EDIT_IMG}</a><!-- ENDIF --><!-- IF U_DELETE --> <a href="{U_DELETE}" title="{L_DELETE_ARTICLE}">{DELETE_IMG}</a><!-- ENDIF --></div>
				<!-- IF IMAGE --><span class="{S_CONTENT_FLOW_BEGIN}-column"><img src="{IMAGE}" alt="{TITLE}" title="{TITLE}" />&nbsp;&nbsp;</span><!-- ENDIF -->
				<strong><em>{INTRO}</em></strong>
				<!-- IF SIMILAR --><br />{SIMILAR}<!-- ENDIF -->
				<div align="{S_CONTENT_FLOW_END}">
					<strong>{L_ARTICLE_RATES}:</strong> {RATE_IMAGE}<!-- IF S_USER_RATES_OPTIONS --> | <select name="user_rates" id="user_rates">{S_USER_RATES_OPTIONS}</select> <input type="submit" name="submit" value="{L_RATE}" class="btnmain" /><!-- ENDIF --><br />{RATE_DETAILS}
				</div>
				{CONTENT}
				<br /><br />
				<div align="{S_CONTENT_FLOW_END}">
					<a onclick="<!-- IF not S_IS_BOT and S_USER_LOGGED_IN -->dE('comment_panel', 1)<!-- ELSE -->alert('{L_NO_COMMENT}')<!-- ENDIF -->" style="cursor: pointer;"><img src="{T_THEME_PATH}/images/icon_comment.png" alt="{L_COMMENT_ARTICLE}" title="{L_COMMENT_ARTICLE}" /></a>
					<a onclick="window.open('{U_PRINT}')" style="cursor: pointer;"><img src="{T_THEME_PATH}/images/icon_print.png" alt="{L_PRINT_ARTICLE}" title="{L_PRINT_ARTICLE}" /></a>
					<a <!-- IF not S_IS_BOT and S_USER_LOGGED_IN -->href="{U_EMAIL}"<!-- ELSE -->onclick="alert('{L_NO_EMAIL}')" style="cursor: pointer;"<!-- ENDIF -->><img src="{T_THEME_PATH}/images/icon_email.png" alt="{L_EMAIL_ARTICLE}" title="{L_EMAIL_ARTICLE}" /></a>
					<br />
					<strong><!-- IF SOURCE -->{L_SOURCE}: <em>{SOURCE}</em><!-- ELSE -->{EXPRESS_COPYRIGHT}<!-- ENDIF --></strong>
				</div>
			</div>
		</td>
	</tr>
	</table>
	<!-- ENDIF -->

	<br clear="all" />

	<div align="{S_CONTENT_FLOW_BEGIN}"><a href="{U_VIEW_CAT}" class="forumlink">{L_RETURN_CATEGORY}</a></div>

	<br clear="all" />

	<table class="tablebg" width="100%" cellspacing="1">
	<tr>
		<td class="cat"><h4>{L_ARTICLE_COMMENTS}</h4></td>
	</tr>
	<tr>
		<td class="row1" colspan="2">
			<div class="postbody" style="padding: 10px;">
			<!-- BEGIN comments -->
				<!-- IF comments.U_DELETE --><span class="{S_CONTENT_FLOW_BEGIN}-column"><a href="{comments.U_DELETE}" onclick="if(confirm('{L_DELETE_COMMENT_CONFIRM}')){ return true } else{ return false }" title="{L_DELETE_COMMENT}">{DELETE_COMMENT_IMG}</a></span>&nbsp;<!-- ENDIF -->
				{comments.POSTER} ({comments.TIME}): {comments.COMMENT}<br />
			<!-- END comments -->
			</div>
		</td>
	</tr>
	</table>

	<!-- IF not S_IS_BOT and S_USER_LOGGED_IN -->
	<br clear="all" />

	<div id="comment_panel" style="display: none;">
	<table class="tablebg" width="100%" cellspacing="1">
	<tr>
		<th colspan="2">{L_COMMENT_ARTICLE}</th>
	</tr>
	<tr>
		<td class="row1" valign="top">
			<strong class="genmed">{L_YOUR_COMMENT}:</strong>
			<br /><span class="gensmall">{L_YOUR_COMMENT_EXPLAIN}&nbsp;</span>
			<br /><br /><span class="genmed nowrap">{L_FONT_SIZE}: <select class="gensmall" name="addbbcode20" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.form.addbbcode20.selectedIndex = 2;" onmouseover="helpline('f')" onmouseout="helpline('tip')">
				<option value="50">{L_FONT_TINY}</option>
				<option value="85">{L_FONT_SMALL}</option>
				<option value="100" selected="selected">{L_FONT_NORMAL}</option>
				<option value="150">{L_FONT_LARGE}</option>
				<option value="200">{L_FONT_HUGE}</option>
			</select></span>
			<br /><br />
			<script type="text/javascript">
			// <![CDATA[
				colorPalette('h', 8, 6);
			// ]]>
			</script>
		</td>
		<td class="row2" valign="top">
			<table width="100%" cellspacing="0" cellpadding="0" border="0">
			<tr>
				<td>
					<input type="button" class="btnbbcode" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px;" onclick="bbstyle(0)" onmouseover="helpline('b')" onmouseout="helpline('tip')" />
					<input type="button" class="btnbbcode" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px;" onclick="bbstyle(2)" onmouseover="helpline('i')" onmouseout="helpline('tip')" />
					<input type="button" class="btnbbcode" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px;" onclick="bbstyle(4)" onmouseover="helpline('u')" onmouseout="helpline('tip')" />
					<input type="button" class="btnbbcode" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onclick="bbstyle(6)" onmouseover="helpline('q')" onmouseout="helpline('tip')" />
					<input type="button" class="btnbbcode" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onclick="bbstyle(8)" onmouseover="helpline('c')" onmouseout="helpline('tip')" />
					<input type="button" class="btnbbcode" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onclick="bbstyle(10)" onmouseover="helpline('l')" onmouseout="helpline('tip')" />
					<input type="button" class="btnbbcode" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onclick="bbstyle(12)" onmouseover="helpline('o')" onmouseout="helpline('tip')" />
					<input type="button" class="btnbbcode" accesskey="t" name="addlitsitem" value="[*]" style="width: 40px" onclick="bbstyle(-1)" onmouseover="helpline('e')" onmouseout="helpline('tip')" />				
					<input type="button" class="btnbbcode" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onclick="bbstyle(14)" onmouseover="helpline('p')" onmouseout="helpline('tip')" />
					<input type="button" class="btnbbcode" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onclick="bbstyle(16)" onmouseover="helpline('w')" onmouseout="helpline('tip')" />
					<input type="button" class="btnbbcode" accesskey="d" name="addbbcode18" value="Flash" onclick="bbstyle(18)" onmouseover="helpline('d')" onmouseout="helpline('tip')" />

					<!-- IF .custom_tags -->
						<!-- BEGIN custom_tags -->
							<input type="button" class="btnbbcode" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})"<!-- IF custom_tags.BBCODE_HELPLINE !== '' --> onmouseover="helpline('cb_{custom_tags.BBCODE_ID}')" onmouseout="helpline('tip')"<!-- ENDIF --> />
						<!-- END custom_tags -->
					<!-- ENDIF -->

					<p><input type="text" readonly="readonly" name="helpbox" style="width:100%" class="helpline" value="{L_STYLES_TIP}" /></p>

				</td>
			</tr>
			<tr>
				<td valign="top" style="width: 100%;">
					<p><textarea id="comment" name="comment" rows="10" cols="65">{COMMENT}</textarea></p>
					<p><label><input type="checkbox" class="radio" name="comment_parse_bbcode"<!-- IF S_COMMENT_BBCODE_CHECKED --> checked="checked"<!-- ENDIF --> /> {L_PARSE_BBCODE}</label>
						<label><input type="checkbox" class="radio" name="comment_parse_smilies"<!-- IF S_COMMENT_SMILIES_CHECKED --> checked="checked"<!-- ENDIF --> /> {L_PARSE_SMILIES}</label>
						<label><input type="checkbox" class="radio" name="comment_parse_urls"<!-- IF S_COMMENT_URLS_CHECKED --> checked="checked"<!-- ENDIF --> /> {L_PARSE_URLS}</label></p>
				</td>
			</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td class="cat" colspan="2" align="center">
			<input type="hidden" name="action" value="save" />
			<input class="btnmain" type="submit" id="submit" name="submit" value="{L_COMMENT}" />&nbsp;
			{S_FORM_TOKEN}
		</td>
	</tr>
	</table>
	</div>
	<!-- ENDIF -->

	<!-- IF MORE_ARTICLES -->
	<br clear="all" />

	<table class="tablebg" width="100%" cellspacing="1">
	<tr>
		<td class="cat"><h4>{L_MORE_ARTICLES}</h4></td>
	</tr>
	<tr>
		<td class="row1" colspan="2"><div class="postbody" style="padding: 10px;">{MORE_ARTICLES}</div></td>
	</tr>
	</table>
	<!-- ENDIF -->

	</form>

</div>

<br clear="all" />

<!-- INCLUDE overall_footer.html -->